package com.zygh.policeasset.pojo;

import cn.afterturn.easypoi.util.PoiElUtil;
import io.swagger.annotations.ApiModelProperty;

/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/pojo/RoadCross.class */
public class RoadCross {
    private Integer id;
    @ApiModelProperty("路口名称")
    private String name;
    @ApiModelProperty("资产编号")
    private String assetNum;

    public RoadCross setId(Integer id) {
        this.id = id;
        return this;
    }

    public RoadCross setName(String name) {
        this.name = name;
        return this;
    }

    public RoadCross setAssetNum(String assetNum) {
        this.assetNum = assetNum;
        return this;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof RoadCross)) {
            return false;
        }
        RoadCross other = (RoadCross) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();
        Object other$id = other.getId();
        if (this$id == null) {
            if (other$id != null) {
                return false;
            }
        } else if (!this$id.equals(other$id)) {
            return false;
        }
        Object this$name = getName();
        Object other$name = other.getName();
        if (this$name == null) {
            if (other$name != null) {
                return false;
            }
        } else if (!this$name.equals(other$name)) {
            return false;
        }
        Object this$assetNum = getAssetNum();
        Object other$assetNum = other.getAssetNum();
        return this$assetNum == null ? other$assetNum == null : this$assetNum.equals(other$assetNum);
    }

    protected boolean canEqual(Object other) {
        return other instanceof RoadCross;
    }

    public int hashCode() {
        Object $id = getId();
        int result = (1 * 59) + ($id == null ? 43 : $id.hashCode());
        Object $name = getName();
        int result2 = (result * 59) + ($name == null ? 43 : $name.hashCode());
        Object $assetNum = getAssetNum();
        return (result2 * 59) + ($assetNum == null ? 43 : $assetNum.hashCode());
    }

    public String toString() {
        return "RoadCross(id=" + getId() + ", name=" + getName() + ", assetNum=" + getAssetNum() + PoiElUtil.RIGHT_BRACKET;
    }

    public Integer getId() {
        return this.id;
    }

    public String getName() {
        return this.name;
    }

    public String getAssetNum() {
        return this.assetNum;
    }
}